﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketTool.Com.UDP.Client
{
    public class UDPClientProtocol
    {
        public CustomerProtocol Protocols { get; set; }

        public UDPClientMessage Parse(ArraySegment<byte> buffer)
        {
            var bt = this.Protocols.Parse(buffer, out int readlength);
            return new UDPClientMessage(bt);
        }
    }
}
